﻿let NetType = 'InSide'; // InSide or OutSide
// 数据库配置
let DB_IP = 'mysql';
let DB_USER = 'root';
let DB_PWD = '123456';
let DB_NAME = 'xygame';

let PORT = require("./basePort").PORT.DB;
if (NetType == 'InSide') {
	DB_IP = 'mysql';
	DB_USER = 'root';
	DB_PWD = '123456';
	DB_NAME = 'xygame';
}

if (PORT != 6001)
	DB_NAME = 'xygame';

var osType = require('os').type()
if (osType == 'Windows_NT') {
	DB_NAME = 'xygame';
}


exports.DB = {
	HOST: DB_IP,
	USER: DB_USER,
	PWD: DB_PWD,
	DB: DB_NAME,
	PORT: 3306,
};


exports.PORT = PORT;
